/**
    派送方式 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewDistributionModeInfo:{
                index:0,
                flowComponent:'viewDistributionModeInfo',
                modeId:'',
modeName:'',
fixedFee:'',
startDeliveryIn:'',
startDeliveryOut:'',
maximumDistribution:'',
shopId:'',
statusCd:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            $that._loadDistributionModeInfoData();
        },
        _initEvent:function(){
            vc.on('viewDistributionModeInfo','chooseDistributionMode',function(_app){
                vc.copyObject(_app, $that.viewDistributionModeInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,$that.viewDistributionModeInfo);
            });

            vc.on('viewDistributionModeInfo', 'onIndex', function(_index){
                $that.viewDistributionModeInfo.index = _index;
            });

        },
        methods:{

            _openSelectDistributionModeInfoModel(){
                vc.emit('chooseDistributionMode','openChooseDistributionModeModel',{});
            },
            _openAddDistributionModeInfoModel(){
                vc.emit('addDistributionMode','openAddDistributionModeModal',{});
            },
            _loadDistributionModeInfoData:function(){

            }
        }
    });

})(window.vc);
